package com.itheima.myextends.homework.homework1;

/**
 * @Author 王加鑫
 * @Date 2021/5/6 19:43
 * @Version 1.0
 */
public class Student extends Person {

    private String school; // 所在学校

    public Student() {
    }


    public Student(String name, int age, String birthday, String school) {
        super(name, age, birthday);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }


    // 获取信息的方法
    public String getInfo() {
        return "Student[name=" + getName() + ", age=" + getAge() + ", birthday=" + getBirthday() + ", school=" + school + "]";
    }
}
